var form;
var table;
layui.use('form', function(){
   form = layui.form;
   table=layui.table;
    //监听提交
    form.on('submit(formDemo)', function(data){
        layer.msg(JSON.stringify(data.field));
        return false;
    });
});